import clickOut from './clickOut';
import debounce from './debounce';
import draggable from './draggable';
import inputNumber from './inputNumber';
import money from './money';
import throttle from './throttle';
import copy from './copy';
import longpress from './longpress';
// 自定义指令
const directives = {
    copy,
    longpress,
    clickOut,
    debounce,
    draggable,
    inputNumber,
    money,
    throttle
};

export default {
    install(Vue) {
        Object.keys(directives).forEach((key) => {
            Vue.directive(key, directives[key]);
        });
    }
};
